Fixed GtkComboBox to let the cell-layout implementation handle <cell-packing>
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Mon, 13 Dec 2010 10:24:51 +0000 (19:24 +0900)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Tue, 4 Jan 2011 14:37:13 +0000 (23:37 +0900)
gtk/gtkcombobox.c

index 86c301c8de4e00af13ed7ef26010f8e4d19bbca4..eb8dea45b62b27d2176e8a6be73120ce9dd28cee 100644 (file)
@@ -5167,12 +5167,8 @@ gtk_combo_box_buildable_custom_tag_end (GtkBuildable *buildable,
                                        const gchar  *tagname,
                                        gpointer     *data)
 {
-  if (strcmp (tagname, "attributes") == 0)
-    _gtk_cell_layout_buildable_custom_tag_end (buildable, builder, child, tagname,
-                                              data);
-  else
-    parent_buildable_iface->custom_tag_end (buildable, builder, child, tagname,
-                                           data);
+  if (!_gtk_cell_layout_buildable_custom_tag_end (buildable, builder, child, tagname, data))
+    parent_buildable_iface->custom_tag_end (buildable, builder, child, tagname, data);
 }
 
 static GObject *